The Name and Function for G code

2018-05-21

Code Name - Function Description



G00 ------ Quick positioning

G01 ------ linear interpolation

G02 ------ Circular interpolation in clockwise direction

G03 ------ anti-clockwise circular interpolation

G04 ------ Timed out

G05 ------ Circular interpolation through the middle point

G07 ------ Z-spline interpolation

G08 ------ Feed acceleration

G09 ------ feed deceleration

G20 ------ subroutine call

G22 ------ radius size programming mode

G220 ----- Used on the system operation interface

G23 ------ diameter size programming

G230 ----- Used on the system operation interface

G24 ------ subroutine end

G25 ------ Jump processing

G26 ------ cycle processing

G30 ------ rate cancellation

G31 ------ rate definition

G32 ------ other thread cutting, inch

G33 ------ other thread cutting, metric

G53, G500-set the workpiece coordinate system cancellation

G54 ------ set the workpiece coordinate system

G55 ------ set the workpiece coordinate system II

G56 ------ set the workpiece coordinate system three

G57 ------ set the workpiece coordinate system four

G58 ------ set the workpiece coordinate system five

G59 ------ set the workpiece coordinate system VI

G60 ------ The exact path way

G64 ------ continuous path mode

G70 ------ inch size

G71 ------ Metric size mm

G74 ------ Reference point return (machine zero)

G75 ------ Return to programming coordinate zero point

G76 ------ return to the programming coordinate starting point

G81 ------ Cylindrical fixed cycle

G331 ----- thread fixed cycle

G90 ------ absolute size

G91 ------ Relative size

G92 ------ Prefabricated coordinates

G94 ------ Feed rate, feed per minute

G95 ------ feed rate, feed per revolution


G00 - Quick positioning

Format: G00 X (U) __ Z (W) __

Description: (1) This command enables the tool to quickly move to the specified position according to the point control mode. Not moving the process of the workpiece

Processed.

(2) All programming axes move at the same time as the parameters define, and stop when a certain axis finishes programming, while others

Axis continue to exercise,

(3) No movement of the coordinates without programming.

(4) G00 can be written as G0

Example: G00 X75 Z200

G0 U-25 W-100

First, X and Z go 25 at the same time quickly to point A, then Z to 75 and quickly go to point B.


G01 - linear interpolation

Format: G01 X (U) __ Z (W) __ F __ (mm / min)

Explanations: (1) This command moves the tool to the specified position according to the linear interpolation method. The movement speed is given by F command

Feed rate. All coordinates can be linked operation.

(2) G01 can also be written as G1

Example: G01 X40 Z20 F150

Two-axis linkage from point A to point B.


G02-inverse interpolation

Format 1: G02 X (u) ____ Z (w) ____ I____K____F_____

Explanations: (1) X, Z In G90, the arc end point coordinate is the absolute coordinate value of the relative programming zero point. At G91,

The arc end point is the incremental value relative to the starting point of the arc. No matter G90, G91, I and K are the coordinates of arc end point.

I is the X direction value, K is the Z direction value. Circle center coordinates can not be omitted during circular interpolation unless programmed in other formats.

(2) G02 instruction programming, you can directly edit the quadrant circle, a full circle and so on.

Note: When the quadrant, will automatically carry out the gap compensation, if the end of the parameter zone input gap compensation and machine actual backlash

Disparities, will produce obvious cuts on the workpiece.

(3) G02 can also be written as G2.

Example: G02 X60 Z50 I40 K0 F120


Format 2: G02 X (u) ____ Z (w) ____ R (+ \ -) __ F__

Description: (1) can not be used for full circle programming

(2) R is the radius of the unilateral R arc. R is a symbol, "+" means that the arc angle is less than 180 degrees;

"-" means the arc angle is greater than 180 degrees. Where "+" can be omitted.

(3) It is based on the coordinates of the end point, when the length of the end point and starting point is greater than 2R, the arc is replaced by a straight line.

Example: G02 X60 Z50 R20 F120


Format 3: G02 X (u) ____ Z (w) ____ CR = __ (radius) F__

Format 4: G02 X (u) ____ Z (w) __ D __ (diameter) F ___

The two programming formats are basically the same as format 2


G03 - round interpolation

Description: The format is the same as that of G02 except that the direction of arc rotation is opposite.


G04 - Timed out

Format: G04__F__ or G04 __K__

Description: The processing movement is suspended and the processing time continues. The pause time is specified by the data following F. The unit is second.

The range is 0.01 seconds to 300 seconds.


G05 - Circular interpolation through the middle point

Format: G05 X (u) ____ Z (w) ____ IX_____IZ_____F_____

Explanations: (1) X and Z are the coordinates of the end point, and IX and IZ are the coordinates of the middle point. Others are similar to G02 / G03

Example: G05 X60 Z50 IX50 IZ60 F120


G08 / G09-feed acceleration / deceleration

Format: G08

Description: They occupy a single line in the program section, running to this section in the program, the feed rate will increase by 10%

If you want to increase 20% you need to write two separate sections.


G22 (G220) - Radius size programming mode

Format: G22

Description: In the program alone accounted for a line, the system runs in a radius mode, the program below the value is

The radius of the subject.


G23 (G230) - Diameter programming

Format: G23

Description: In the program alone accounted for a line, the system runs in diameter, the program below the value is

Diameter shall prevail.


G25 - Jump processing

Format: G25 LXXX

Description: When the program is executed to this program, it transfers the specified program segment. (XXX is the block number).


G26-cycle processing

Format: G26 LXXX QXX

Description: When the program execution to this section of the program, it specifies the beginning of this section as a loop body,

The number of cycles depends on the value of Q.


G30-override logout

Format: G30

Explanation: Take one line in the program alone and use with G31 to cancel the function of G31.


G31-Definition of magnification

Format: G31 F_____


G32 - such as the pitch thread (inch)

G33 - equal pitch thread (metric)

Format: G32 / G33 X (u) ____ Z (w) ____ F____

Description: (1) X, Z coordinates for the end point, F pitch

(2) G33 / G32 can only process single-pole, single-thread.

(3) X value changes, can be machined taper thread

(4) When using this command, the spindle speed can not be too high, or the tool will wear more.


G54-set the workpiece coordinate one

Format: G54

Description: There are several coordinate systems available in the system, G54 corresponds to the first coordinate system, and the origin position value is on the machine

Parameter setting.


G55-set the workpiece coordinates two

Ibid

G56-set the workpiece coordinates three

Ibid

G57 - set the workpiece coordinates four

Ibid

G58-set the workpiece coordinates five

Ibid

G59-set the workpiece coordinates six

Ibid


G60 - the exact path way

Format: G60

Description: In the actual machining process, several actions linked together, with accurate path programming, then in progress

The next paragraph of processing, there will be a buffer process (meaning deceleration)


G64 - continuous path way

Format: G64

Explanation: Relative to G60. Mainly used for roughing.


G74 - Reference point return (machine zero)

Format: G74 X Z

Note: (1) No other content shall appear in this paragraph.

(2) Coordinates appearing behind G74 will return to zero in order of X, Z.

(3) Before using the G74, make sure that the machine tool is equipped with the reference point switch.

(4) Single-axis zero return is also possible.


G75 - Return programming coordinate zero point

Format: G75 X Z

Description: Return to programming coordinate zero point


G76 - Return to the programming coordinate starting point

Format: G76

Description: Return to the point where the tool starts machining.


G81 - Cylindrical (inner circle) canned cycle

Format: G81__X (U) __ Z (W) __ R__I__K__F__

Explanations: (1) X, Z are the coordinates of the end point, U, W are the incremental value of the end point relative to the current point.

(2) R is the diameter of the starting section to be machined.

(3) I for the rough car feed, K for fine car feed, I, K is a signed number, and the two symbols should be the same.

The symbolic conventions are as follows: Cutting from outside center axis (outer circle) to "-" and vice versa to "+".

(4) different X, Z, R determine the different cylindrical switch, such as: there is no degree of taper,

Positive taper or reverse taper, left or right cutting and other cutting.

(5) F is the cutting speed (mm / min)

(6) When the machining is finished, the tool stops at the end point.

Example: G81 X40 Z 100 R15 I-3 K-1 F100

Processing process:

1: G01 infeed 2 times I (the first knife is I, the last one is I + K), deep cutting:

2: G01 Two-axis interpolation, cutting to end cross-section, stop if machining is finished:

3: G01 retracts I to the safe position, meanwhile, the auxiliary section smoothing is performed

4: G00 rapid feed to high surface I, I reserved for the next cutting, repeat to 1.


G90-absolute value programming

Format: G90

Explanations: (1) When G90 is programmed into the program, all coordinate values programmed afterwards are all based on the programmed zero point.

(2) After the system is powered on, the machine tool is in G state.

N0010 G90 G92 x20 z90

N0020 G01 X40 Z80 F100

N0030 G03 X60 Z50 I0 K-10

N0040 M02


G91 - incremental programming

Format: G91

Description: When G91 is programmed, all coordinate values are calculated from the previous coordinate position as a starting point

Motion programming value. In the next coordinate system, the previous point is always used as the starting point for programming.

Example: N0010 G91 G92 X20 Z85

N0020 G01 X20 Z-10 F100

N0030 Z-20

N0040 X20 Z-15

N0050 M02


G92-Set the workpiece coordinate system

Format: G92 X__ Z__

Explanations: (1) G92 only changes the coordinate value currently displayed by the system, does not move the coordinate axis, reaches the set coordinate

Origin of the purpose.

(2) The effect of G92 is to change the displayed tool nose coordinates to the set value.

(3) The XZ behind the G92 can be programmed separately, but also the whole series.


G94-feed rate, feed per minute

Description: This is the machine's default boot state.


G20 - subroutine call

Format: G20 L__

N__

Explanations: (1) The program name after L is the subroutine N to be called, but N can not be input.

N is only allowed after the number 1 ~ 99999999.

(2) The procedures in this paragraph shall not appear beyond the above description.


G24 - return to the end of the subroutine

Format: G24

Explanations: (1) G24 indicates that the subprogram ends and returns to the next segment of the program that called the subprogram.

(2) G24 and G20 appear in pairs

(3) G24 This section does not allow other orders appear.

Example: The following example shows the transfer process of parameters in the subroutine call, please note that the application

Program Name: P10

M03 S1000

G20 L200

M02

N200 G92 X50 Z100

G01 X40 F100

Z97

G02 Z92 X50 I10 K0 F100

G01 Z-25 F100

G00 X60

Z100

G24

If you want to call multiple times, please use the following format

M03 S1000

N100 G20 L200

N101 G20 L200

N105 G20 L200

M02

N200 G92 X50 Z100

G01 X40 F100

Z97

G02 Z92 X50 I10 K0 F100

G01 Z-25 F100

G00 X60

Z100

G24

G331 - thread machining cycle

Format: G331 X__ Z__I__K__R__p__

Description: (1) X to the diameter changes, X = 0 is a straight thread

(2) Z is the thread length, absolute or relative programming can be

(3) I is the tail length of the thread in the X direction after cutting, ± value

(4) R diameter difference between diameter and root diameter, positive value

(5) K pitch KMM

(6) p thread cycle processing times, that is divided into several knife cut finish

Tip:

1, each depth of cut into R ÷ p and rounded, the last knife does not feed to smooth thread surface

2, the end of the thread according to the positive and negative directions along the X determine the I value of the title.

3, the initial position of the thread processing cycle is to align the tip of the thread at the outer circle.

Example:

M3

G4 f2

G0 x30 z0

G331 z-50 x0 i10 k2 r1.5 p5

G0 z0

M05